<div class="chucdanhs view">
<h2><?php  __('Chucdanh');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $chucdanh['Chucdanh']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Chucdanh'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $chucdanh['Chucdanh']['chucdanh']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Chucdanh', true), array('action' => 'edit', $chucdanh['Chucdanh']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Chucdanh', true), array('action' => 'delete', $chucdanh['Chucdanh']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $chucdanh['Chucdanh']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Chucdanhs', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Chucdanh', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Nhanviens', true), array('controller' => 'nhanviens', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Nhanvien', true), array('controller' => 'nhanviens', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Phanquyens', true), array('controller' => 'phanquyens', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Phanquyen', true), array('controller' => 'phanquyens', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Nhanviens');?></h3>
	<?php if (!empty($chucdanh['Nhanvien'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Manv'); ?></th>
		<th><?php __('Donvi Id'); ?></th>
		<th><?php __('Chucdanh Id'); ?></th>
		<th><?php __('Tennv'); ?></th>
		<th><?php __('Sdt'); ?></th>
		<th><?php __('Email'); ?></th>
		<th><?php __('Diachi'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($chucdanh['Nhanvien'] as $nhanvien):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $nhanvien['id'];?></td>
			<td><?php echo $nhanvien['manv'];?></td>
			<td><?php echo $nhanvien['donvi_id'];?></td>
			<td><?php echo $nhanvien['chucdanh_id'];?></td>
			<td><?php echo $nhanvien['tennv'];?></td>
			<td><?php echo $nhanvien['sdt'];?></td>
			<td><?php echo $nhanvien['email'];?></td>
			<td><?php echo $nhanvien['diachi'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'nhanviens', 'action' => 'view', $nhanvien['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'nhanviens', 'action' => 'edit', $nhanvien['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'nhanviens', 'action' => 'delete', $nhanvien['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $nhanvien['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Nhanvien', true), array('controller' => 'nhanviens', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Phanquyens');?></h3>
	<?php if (!empty($chucdanh['Phanquyen'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Chucdanh Id'); ?></th>
		<th><?php __('Role Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($chucdanh['Phanquyen'] as $phanquyen):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $phanquyen['id'];?></td>
			<td><?php echo $phanquyen['chucdanh_id'];?></td>
			<td><?php echo $phanquyen['role_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'phanquyens', 'action' => 'view', $phanquyen['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'phanquyens', 'action' => 'edit', $phanquyen['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'phanquyens', 'action' => 'delete', $phanquyen['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $phanquyen['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Phanquyen', true), array('controller' => 'phanquyens', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
